<template>
    <div id="app">
        <router-view></router-view>
    </div>
</template>

<script>
export default {
    name: 'app',
    async created() {
        // 登录接口调用
        // let loginInfo = await this.$store.dispatch('login', { Vm: this })
        // this.$store.dispatch('setRegisterInfo', loginInfo.result)

        this.$Message.config({
            top: 250
        })
        // 测试
        let userInfo = {
            XQH: '01',
            XH: '41401432',
            ICON: '201706161608158010.jpg',
            XM: '张三',
            XQMC: '绵阳校区',
            YQH: '03',
            USER_ID: '1d6e5f32b43941c7ad6c989d09b9672f',
            IDENTITY_NAME: '学生',
            NJH: '2014',
            XBM: '1',
            BJDM: 'B03201412',
            SESSION_TOKEN: 'd75d5909a0794b419589a7832712c70b',
            IM_ACCOUNT: '1d6e5f32b43941c7ad6c989d09b9672f',
            SYD: '',
            IDENTITY: 1101,
            KSH: '987654321',
            BJMC: '2014级本科14班',
            TEL: '',
            SFZJH: '510107199607025417'
        }
        this.$store.commit('SET_userInfo', userInfo)
    }
}
</script>
<style lang=less>
@import './style/variable';
body {
    background-color: @background-color;
}
#app {
    height: 100vh;
    background-color: @background-color;
    padding-top: 50px;
}
</style>
